package com.divemotor.ventarepuestosinternet.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.divemotor.ventarepuestosinternet.dao.PaisDAO;
import com.divemotor.ventarepuestosinternet.model.Pais;
import com.divemotor.ventarepuestosinternet.service.PaisService;

@Service(value = "paisService")
@Transactional(rollbackFor=Exception.class)
public class PaisServiceImpl implements PaisService {

	@Autowired
	private PaisDAO paisDAO;
	
	@Override
	public Pais obtenerPaisPorId(Pais pais) {
		return paisDAO.obtenerPorId(pais.getIdPais());
	}

}
